import {Observable} from "rxjs/Observable";
export interface AuthContract {
  apiUrl: string;
  check(): boolean;
  login(username: string, password: string): Observable<any>;
  logout();
  register(data:any): Observable<any>;
  retrievePassword(loginId:string,email:string): Observable<any>;
  changePassword(oldPassword: string, newPassword: string):Observable<any>;
  userInfo(): any | null;
  apiToken(user?: any): string | null;
  username(user?: any): string | null;
  email(user?: any): string | null;
}
